<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WebView 交互演示</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background-color: #f0f0f0;
        }
        button {
            padding: 12px 24px;
            font-size: 16px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }
        button:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
<button onclick="showAndroidToast()">点击显示Android Toast</button>

<script>
    function showAndroidToast() {
        // 调用Android原生方法
        if (window.AndroidInterface) {
            AndroidInterface.showToast("来自WebView的消息");
        } else {
            alert("Android接口未就绪");
        }
    }

    function abc(s){
        alert("abc");
    }
</script>
</body>
</html>